package com.beifu.manager.dao;

import com.beifu.manager.model.AssetInPlan;
import com.beifu.manager.model.AssetInPlanExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface AssetInPlanMapper {
    int countByExample(AssetInPlanExample example);

    int deleteByExample(AssetInPlanExample example);

    int deleteByPrimaryKey(Long id);

    int insert(AssetInPlan record);

    int insertSelective(AssetInPlan record);

    List<AssetInPlan> selectByExample(AssetInPlanExample example);

    AssetInPlan selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") AssetInPlan record, @Param("example") AssetInPlanExample example);

    int updateByExample(@Param("record") AssetInPlan record, @Param("example") AssetInPlanExample example);

    int updateByPrimaryKeySelective(AssetInPlan record);

    int updateByPrimaryKey(AssetInPlan record);
    
    /**
     * 根据备品入库单编号查询类型集合
     * @param assetInId
     * @return
     */
    List<AssetInPlan> selectAssetInPlanByAssetInId(Long assetInId);
}